import request from "../../utils/request";

const getPage = params => request({
  url: 'v1/department/page',
  method: 'get',
  params
});
const create = (data) => request({
  url: 'v1/department',
  method: 'post',
  data
});
const update = (data) => request({
  url: `v1/department/${data.Id}`,
  method: 'put',
  data
});

export default {
  getPage,
  create,
  update
}
